//
//  UIButton+Extension.swift
//  LH-Swift-WeiBo
//
//  Created by liuhao on 16/9/25.
//  Copyright © 2016年 liuhao. All rights reserved.
//

import UIKit



extension UIButton {
    //便利构造函数
    convenience init(title: String,textColor: UIColor,fontSize: CGFloat) {
        self.init()
        setTitle(title, for: .normal)
        setTitleColor(textColor, for: .normal)
        titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        self.sizeToFit()
    }
}
